/*
 * CWindow.cpp
 *
 *  Created on: 2012-1-26
 *      Author: Administrator
 */

void CWindow::create(){
	this.wind = CreateWindow (szAppName,                  // window class name
	                          TEXT ("The Hello Program"), // window caption
	                          WS_OVERLAPPEDWINDOW,        // window style
	                          CW_USEDEFAULT,              // initial x position
	                          CW_USEDEFAULT,              // initial y position
	                          CW_USEDEFAULT,              // initial x size
	                          CW_USEDEFAULT,              // initial y size
	                          NULL,                       // parent window handle
	                          NULL,                       // window menu handle
	                          hInstance,                  // program instance handle
	                          NULL) ;
}

TCHAR *CWindow::getClassName() const
{
    return className;
}

void *CWindow::getInstance() const
{
    return instance;
}

void *CWindow::getMenu() const
{
    return menu;
}

void *CWindow::getParentWin() const
{
    return parentWin;
}

TCHAR *CWindow::getWinName() const
{
    return winName;
}

unsigned long CWindow::getWinStyle() const
{
    return winStyle;
}

void *CWindow::getWind() const
{
    return wind;
}

void CWindow::setClassName(TCHAR *className)
{
    this->className = className;
}

void CWindow::setInstance(void *instance)
{
    this->instance = instance;
}

void CWindow::setMenu(void *menu)
{
    this->menu = menu;
}

void CWindow::setParentWin(void *parentWin)
{
    this->parentWin = parentWin;
}

void CWindow::setWinName(TCHAR *winName)
{
    this->winName = winName;
}

void CWindow::setWinStyle(unsigned long  winStyle)
{
    this->winStyle = winStyle;
}

void CWindow::setWind(void *wind)
{
    this->wind = wind;
}


